<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动定位练习</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        .container {
            width: 1000px;
            margin: 0 auto;
        }

        .sidebar {
            width: 200px;
            float: left;
            background-color: #f8f8f8;
            padding: 20px;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
        }

        .main-content {
            margin-left: 220px;
            padding: 20px;
        }

        .navigation {
            background-color: burlywood;
            overflow: hidden;
            /* 清除浮动影响 */
            color: white;
            padding: 10px 0;
        }

        .navigation ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            /* 使用flexbox布局 */
            justify-content: center;
            /* 水平居中 */
        }

        .navigation li {
            margin: 0 15px;
        }

        .navigation a {
            color: white;
            text-decoration: none;
            font-weight: bold;
        }

        .hero {
            background-image: url('image.png');
            /* 替换为实际图片URL */
            height: 300px;
            background-size: cover;
            position: relative;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero h1 {
            font-size: 36px;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        .button {
            display: inline-block;
            margin: 10px 0;
            padding: 10px 20px;
            background-color: #ff5722;
            color: white;
            text-decoration: none;
            border-radius: -5px;
        }

        .button:hover {
            background-color: #e64a19;
        }
    </style>
</head>

<body>
    <div class="container">

        <div class="main-content">
            <div class="navigation">
                <ul>
                    <li><a href="#">查询快递</a></li>
                    <li><a href="#">查看快递</a></li>
                    <li><a href="#">联系客服</a></li>
                    <li><a href="#">帮助中心</a></li>
                </ul>
            </div>
            <div class="hero">
            </div>
        </div>
    </div>
</body>

</html>